package com.ruoyi.student.domain.vo;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.ArrayList;
import java.util.List;

/**
 * 班级对象 t_class
 * 
 * @author ruoyi
 * @date 2023-08-15
 */
@Data
public class TClassVo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 班级名称 */
    @Excel(name = "班级名称")
    private String className;

    /** 所属年级id */
    @Excel(name = "所属年级id")
    private Long gradeId;

    /** 年级名称 */
    @Excel(name = "年级名称")
    private String gradeName;

    /** 所属专业id */
    @Excel(name = "所属专业id")
    private Long specialityId;

    /** 专业名称 */
    @Excel(name = "专业名称")
    private String specialityName;

    /** 创建人id */
    @Excel(name = "创建人id")
    private Long creatorId;

    /** 创建人 */
    @Excel(name = "创建人")
    private String creatorName;

    /** 0无效 1有效 */
    @Excel(name = "0无效 1有效")
    private Integer validFlag;

    /** 已经添加的课程列表 */
    @Excel(name = "已经添加的课程列表")
    private List<TCourseInfoVo> tCourseInfoVos;

    public void setTCourseInfoVos(List<TCourseInfoVo> tCourseInfoVos)
    {
        this.tCourseInfoVos = tCourseInfoVos;
    }

    public List<TCourseInfoVo> getTCourseInfoVos()
    {
        return tCourseInfoVos;
    }

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setClassName(String className) 
    {
        this.className = className;
    }

    public String getClassName() 
    {
        return className;
    }
    public void setGradeId(Long gradeId) 
    {
        this.gradeId = gradeId;
    }

    public Long getGradeId() 
    {
        return gradeId;
    }

    public void setCreatorName(String creatorName)
    {
        this.creatorName = creatorName;
    }

    public String getCreatorName()
    {
        return creatorName;
    }

    public void setGradeName(String gradeName)
    {
        this.gradeName = gradeName;
    }

    public String getGradeName()
    {
        return gradeName;
    }

    public void setSpecialityName(String specialityName)
    {
        this.specialityName = specialityName;
    }

    public String getSpecialityName()
    {
        return specialityName;
    }

    public void setSpecialityId(Long specialityId) 
    {
        this.specialityId = specialityId;
    }

    public Long getSpecialityId() 
    {
        return specialityId;
    }
    public void setCreatorId(Long creatorId) 
    {
        this.creatorId = creatorId;
    }

    public Long getCreatorId() 
    {
        return creatorId;
    }
    public void setValidFlag(Integer validFlag) 
    {
        this.validFlag = validFlag;
    }

    public Integer getValidFlag() 
    {
        return validFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("className", getClassName())
            .append("gradeId", getGradeId())
                .append("gradeName", getGradeName())
            .append("specialityId", getSpecialityId())
                .append("specialityName", getSpecialityName())
            .append("creatorId", getCreatorId())
                .append("creatorName", getCreatorName())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("validFlag", getValidFlag())
                .append("tCourseInfoVos", getTCourseInfoVos())
            .toString();
    }
}
